package com.lazyJr.test.reference;

/**
 * Created by liuyangfx on 16-3-14.
 */
public class ReferenceTest {

    public static void reTtest(ReTest t){
        t.setName("121");
        t.setSex("sdfas");
    }

    public static void main(String[] args) {
        ReTest reTest = new ReTest();
        ReferenceTest.reTtest(reTest);
        System.out.println(reTest.getName());
    }
}
class ReTest{
    private String name ;
    private String sex;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
